From python:3.6
WORKDIR /app
ADD requirement.txt /app
RUN mkdir -p /app/py
RUN mkdir -p /app/templates
RUN mkdir opt
ADD chat.py /app/py
ADD flask-chat.py /app/py
ADD index.html /app/templates
RUN /usr/local/bin/python -m pip install --upgrade pip 
RUN pip install -r requirement.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
EXPOSE 9000
CMD ["python","-u","/app/py/flask-chat.py",">>","/app/log.txt","2>&1"]
